#!/bin/sh

set -e

case "$1" in
    (install)
    @MEMO_LAUNCHCTL_PREFIX@/bin/launchctl load -w @MEMO_PREFIX@/Library/LaunchDaemons/org.libimobiledevice.usbmuxd.plist
    ;;
	(upgrade)
	@MEMO_LAUNCHCTL_PREFIX@/bin/launchctl unload @MEMO_PREFIX@/Library/LaunchDaemons/org.libimobiledevice.usbmuxd.plist
    @MEMO_LAUNCHCTL_PREFIX@/bin/launchctl load @MEMO_PREFIX@/Library/LaunchDaemons/org.libimobiledevice.usbmuxd.plist
	;;
	(*)
	exit 0
	;;
esac

exit 0
